import request from "@/utils/request";

/**
 * 保存疾病史
 */
export function add(data) {
  return request({
    method: "post",
    url: "/ats/user/disease/add",
    data,
  });
}

/**
 * 删除疾病史
 */
export function deleteByIds(data) {
  return request({
    method: "post",
    url: "/ats/user/disease/delete",
    data,
  });
}

/**
 * 分页查询疾病史信息
 */
export function page(data) {
  return request({
    method: "get",
    url: "/ats/user/disease/page",
    data,
  });
}

/**
 * 修改疾病史
 */
export function update(data) {
  return request({
    method: "post",
    url: "/ats/user/disease/update",
    data,
  });
}

/**
 * 按主键获取单个疾病史
 */
export function getById(id) {
  return request({
    method: "get",
    url: `/ats/user/disease/getById?id=${id}`,
  });
}
